Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework template assets to use variables instead of component specific param lists #1241

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

rowanseymour
Copy link
Member

No description provided.

@rowanseymour rowanseymour marked this pull request as ready for review April 12, 2024 18:28
{
"type": "image"
}
]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stripping this out because we don't support anything besides text

Copy link

codecov bot commented Apr 12, 2024

Codecov Report

Attention: Patch coverage is 76.47059% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 82.49%. Comparing base (4eafde3) to head (ab3967a).

Files Patch % Lines
assets/static/template.go 72.72% 3 Missing ⚠️
flows/actions/send_msg.go 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1241      +/-   ##
==========================================
- Coverage   82.50%   82.49%   -0.02%     
==========================================
  Files         279      279              
  Lines       14453    14458       +5     
==========================================
+ Hits        11925    11927       +2     
- Misses       2025     2028       +3     
  Partials      503      503              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

if i < len(paramValues) {
params[i] = flows.TemplatingParam{Type: p.Type(), Value: paramValues[i]}
params[i] = flows.TemplatingParam{Type: v.Type(), Value: paramValues[i]}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to not add varName in the TemplatingParam?
That is the new data we need to be able to support the Twilio templates which triggered this refactoring.
I guess that could be another PR too if this is just for backward compatibility

@rowanseymour rowanseymour merged commit 4588f07 into main Apr 15, 2024
5 of 7 checks passed
@rowanseymour rowanseymour deleted the template_variables branch April 15, 2024 18:38
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants